package com.haha.community.dao;

import com.haha.community.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yang
 * @since 2020-10-30
 */
public interface CommentMapper extends BaseMapper<Comment> {
    /**
     * 根据类型和id进行分页查询
     * @param entityType
     * @param entityId
     * @param offset
     * @param limit
     * @return
     */
    List<Comment> selectCommentsByEntity(int entityType, int entityId, int offset, int limit);

}
